package com.medic.mapper.interf;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.medic.entity.Reply;
import com.medic.entity.Topic;


public interface TopicMapper extends MapperInterface<Topic> {

	public List<Topic> selectTopicByUserid(@Param("userid")int userid,@Param("groupid")int groupid) throws Exception;

	public Topic selectTopicById(int topicid ) throws Exception;

	public List<Topic> selectTopicByMedic(@Param("groupid")int  groupid) throws Exception;
	
	
	public List<Reply> selectReplyByTopicid(int topicid) throws Exception;

	public void insertReply(Reply reply)  throws Exception;

	public void updateForUserReply(@Param("rtime")long rtime ,@Param("topicid")int topicid) throws Exception;

	public void updateForUserGetReply(int topicid)  throws Exception;
	
	public void updateForOtherReply(int topicid) throws Exception;


}
